package chain_of_responsibility_pattern;

/**
 * @author 申书航
 * @version 1.0
 * 主应用程序类，用于演示责任链模式
 */
public class App {

    /**
     * 主方法，应用程序的入口点
     * @param args 命令行参数
     */
    public static void main(String[] args) {
        OrcKing king = new OrcKing();
        king.makeRequest(new Request(RequestType.DEFEND_CASTLE, "保卫城堡"));
        king.makeRequest(new Request(RequestType.COLLECT_TAX, "收集税收"));
        king.makeRequest(new Request(RequestType.TORTURE_PRISONER, "惩罚囚犯"));
    }
}

